import { thousandth } from "@/utils/index"
import { IS_NULL } from "@/constant/index"
export const column = [
    {
        title: "角色名称",
        field: "role_name",
        // format: ({cellValue}) => thousandth({ value: cellValue })
    },
    {
        title: "角色描述",
        field: "role_describe"
    },
    {
        title: "角色成员",
        type: "slot",
        slotName: "roleMembers",
        field: "roleMembers",
        // format: ({cellValue}) => cellValue || IS_NULL,
        // className: ({row, column }) => {
        //     const value = row[column.field]
        //     return value === '' ? '' : 'color-primary cursor-p'
        // }
    },
    {
        title: "创建时间",
        field: "booktotal",

    },
    {
        type: "slot",
        slotName: "status",
        title: "状态",
        field: "role_status"
    },
    {
        type: "operation",
        width: '320px'
    }
]